# Maximum and minimum number of peers to connect to per torrent.
min_peers = 50
max_peers = 200

# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 10
max_peers_seed = 50

# Maximum number of simultanious uploads per torrent.
max_uploads = 10

# Global upload and download rate in KiB. "0" for unlimited.
#download_rate = 0
upload_rate = 500

# Default directory to save the downloaded torrents.
directory = ~/downloads/misc

# Default session directory.
session = ~/config/rtorrent/session

#encoding_list = utf8

# Watch directories for new torrents.
schedule = watch_audiobooks, 10, 10, "load.start=~/downloads/_torrents/audiobooks/*.torrent,d.set_directory=~/downloads/audiobooks/"
schedule = watch_books,      10, 10, "load.start=~/downloads/_torrents/books/*.torrent,d.set_directory=~/downloads/books/"
schedule = watch_music,      10, 10, "load.normal=~/downloads/_torrents/music/*.torrent,d.set_directory=~/downloads/music/"
schedule = watch_misc,       10, 10, "load.normal=~/downloads/_torrents/misc/*.torrent,d.set_directory=~/downloads/misc/"

# Port range to use for listening.
port_range = 6891-6891

# Start opening ports at a random position within the port range.
port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
#check_hash = no

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
encryption = allow_incoming,enable_retry,prefer_plaintext

# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
dht = auto

# UDP port to use for DHT.
dht_port = 6881

# Enable peer exchange (for torrents not marked private)
peer_exchange = yes

key_layout = dvorak

## TODO guix's rtorrent doesn't support xmlrpc
# scgi_port = localhost:5000
# xmlrpc_dialect = i8
# encoding_list = UTF-8

